import request from '@/utils/request'
// 工作日历 API接口
const ha_calendarApi = {
  list: '/ha_calendar/list',
  view: '/ha_calendar/view',
  save: '/ha_calendar/save'
}

/**
 * 工作日历分页列表
 * @param {*} body 
 * @returns 
 */
export function queryHa_calendarList(body) {
  return request({
    url: ha_calendarApi.list,
    method: 'post',
    data: body
  })
}

/**
 * 查看工作日历
 * @param {*} params 
 * @returns 
 */
export function viewHa_calendar(params) {
    return request({
        url: ha_calendarApi.view,
        method: 'get',
        params: params
    })
}

export function saveHa_calendar(body) {
  return request({
    url: ha_calendarApi.save,
    method: 'post',
    data: body
  })
}
